package org.hcf.data.service;

import org.hcf.data.entity.ChatFriend;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 好友表 服务类
 * </p>
 *
 * @author xianiyitiao
 * @since 2024-04-18
 */
public interface IChatFriendService extends IService<ChatFriend> {
    List<ChatFriend> getFriends(long userId);

    List<ChatFriend> getFriendsByTo(long to);

    ChatFriend getFriend(long fromId, long toId);

    boolean updateReceive(long id, boolean isReceive);

    List<Long> getFriendsByLastTime(long userId, LocalDateTime lastMsgRemark);
}
